package demo;

import java.sql.*;

/**
 * @author zt
 * @date 2019-12-22 10:48
 */
public class Demo2 {
    public static void main(String[] args) {
        try {
            Class.forName("com.mysql.jdbc.Driver");
            Connection conn = DriverManager.getConnection("jdbc:mysql:///db5", "root", "root");
            PreparedStatement prep = conn.prepareStatement("456465");
            prep.close();
            conn.close();
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
